.switch {
    width: 49px;
    height: 24px;
    background: #e5e5e5;
    z-index: 0;
    margin: 0;
    padding: 0;
    appearance: none;
    border: none;
    cursor: pointer;
    position: relative;
    border-radius: 16px;
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
}
.switch:before {
    content: ' ';
    position: absolute;
    left: 1px;
    top: 1px;
    width: 46px;
    height: 22px;
    background: #fff;
    z-index: 1;
    border-radius: 16px;
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
}
.switch:after {
    content: ' ';
    height: 21px;
    width: 21px;
    border-radius: 25px;
    background: #fff;
    position: absolute;
    z-index: 2;
    top: 1px;
    left: 1px;
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    -webkit-box-shadow: 0 2px 5px #999;
    box-shadow: 0 2px 5px #999;
}
.switchOn, .switchOn:before {
    background: #03b8cf!important;
}